package com.syh.jn.scm.infrastructure.repository.model.base.support;


import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * 父级经营实体 【供应商 上游 下游继承】
 */
@MappedSuperclass
@Data
@EqualsAndHashCode(callSuper = false)
public abstract class SuperBusinessEntityModel extends SuperBusinessModel {
  /**
   * 地址省 市 区
   */
  @Column(name = "AREA", columnDefinition = "varchar(300) COMMENT '地址省 市 区 使用[广东省,广州市,海珠区]格式保存'")
  private String area;
  /**
   * 单位注册地址
   */
  @Column(name = "ADDRESS", columnDefinition = "varchar(300) COMMENT '单位地址'")
  private String address;
  /**
   * 地区编号
   */
  @Column(name = "AREA_CODE", columnDefinition = "varchar(50) COMMENT '地区编号'")
  private String areaCode;
  /**
   * 单位编号
   */
  @Column(name = "CODE", columnDefinition = "varchar(50) COMMENT '单位编号'")
  private String code;
  /**
   * 单位名称
   */
  @Column(name = "NAME", columnDefinition = "varchar(100) COMMENT '单位名称'")
  private String name;
  /**
   * 法人代表
   */
  @Column(name = "LEGAL_REPRESENTATIVE", columnDefinition = "varchar(50) COMMENT '法人代表'")
  private String legalRepresentative;
  /**
   * 注册资金（单位 ：万元）
   */
  @Column(name = "REGISTERED_CAPITAL", columnDefinition = "int COMMENT '注册资金（单位 ：万元）'")
  private Integer registeredCapital;
  /**
   * 工商注册号
   */
  @Column(name = "REGISTRATION_CODE", columnDefinition = "varchar(50) COMMENT '工商注册号'")
  private String registrationCode;
  /**
   * 状态: -1停用, 1可用
   */
  @Column(name = "STATUS", columnDefinition = "smallint COMMENT '状态: -1停用, 1可用'")
  private Short status;
  /**
   * 对公电子邮件
   */
  @Column(name = "EMAIL", columnDefinition = "varchar(50) COMMENT '对公电子邮件'")
  private String email;
  /**
   * 公司联系电话
   */
  @Column(name = "TEL", columnDefinition = "varchar(50) COMMENT '公司联系电话'")
  private String tel;
  /**
   * 营业执照图片url,保存格式[{name: 'food.jpg', url: 'https://xxx.cdn.com/xxx.jpg'}]
   */
  @Column(name = "BUSINESS_LICENSE", columnDefinition = "varchar(1000) COMMENT '营业执照图片url'")
  private String businessLicense;
  /**
   * 创建日期
   */
  @Column(name = "CREATE_TIME_STAMP", columnDefinition = "bigint COMMENT '创建日期'")
  private Long createTimeStamp;

}

